steam_is_cloud_enabled_for_account

语法:

steam_is_cloud_enabled_for_account();


返回: 布尔值


描述

With this function you can check to make sure that the Steam Cloud service is enabled by the user in their Steam Client settings. It will return true if it is and false otherwise. Note that this does not automatically mean that you can store data to the Cloud, as it will also have to have been enabled for your game (you can check this using the function steam_is_cloud_enabled_for_app). If the Steam Cloud is enabled for your game, but the user has it switched off locally, you can still use the Cloud functions to store and retrieve data from a local copy of all files, it will just not upload them to the cloud on the game end, nor synchronise on the game start.


例如:

if steam_is_cloud_enabled_for_account
   {
   steam_file_share("Save.txt");
   }

The above code checks to see if the user has the Steam Cloud enabled and if it returns true, it will then synchronise the given file.